<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>tpl</title>
</head>
<body>
    <h2>n1</h2>
    <hr>
    {%for i in n2%}
    <li>{{i}}</li>
    {%endfor%}
    <hr>
    <ul>
        {%for k,v in n3.items%}
        <li>{{k}} : {{v}}</li>
        {%endfor%}
    </ul>
    <hr>

    {%for item in n4%}
    <div>
        {{item.姓名}}
    </div>
    {%endfor%}

    <hr>

    {%if n1 == '张三'%}
        <h1>111111111</h1>
    {%else%}
        <h1>222222222</h1>
    {%endif%}
</body>
</html>